APPLESCRIPT

• DeBabelizer can be driven by AppleScript.
 -- Run an AppleScript execution program, such as QuicKeys or Script Editor.
 -- Give it a properly formatted AppleScript with DeBabelizer commands.
 -- It will send the commands to DeBabelizer. DeBabelizer will receive them and execute them.

• DeBabelizer can export DeBabelizer scripts as AppleScript scripts (edittable text files) via the "Export AppleScript" function in the Scripts menu. Select the DeBabelizer script to be exported from the submenu, and a Save dialog will appear. Verify the file name and location and hit Save. See "AppleScript Export Options" below.

• DeBabelizer can execute AppleScript scripts via the "Execute AppleScript…" function in the Scripts menu. Selecting this function will bring up an Open dialog. Select the AppleScript to be executed and hit the Open button. Note that only files of type 'TEXT' will be available in the Open dialog. DeBabelizer will only execute text script files. It will not execute compiled AppleScript files (however, these can be executed from other programs, such as Script Editor).

• AppleScript Export Options may be set via the "Misc:Preferences:AppleScript Export…" menu command.
 -- The first line in an AppleScript script indicates which program is the target of the subsequent commands. The first option allows you to set this to  either the name of the copy of DeBabelizer running at the time, or to a name which can be typed in.
 -- When a function is executed via AppleScript, usually the image is not updated afterwards. This is to allow for a series of operations to be executed without the time delay associated with updating the display. However, if the display is not updated after the last function, and the display window is selected, often the image will appear trashed. It is not. It simply needs to be updated. Flipping the image twice is one way to do this. However, the best way is to append "Display Picture" to the end of the AppleScript which is exported. This can be done by checking the "Append Display Picture" checkbox.
  -- When a DeBabelizer function requiring a dialog box is converted to an AppleScript, there are several parameters which must be formatted after the function name. The "Style" popup menu allows a choice of either placing one parameter per line (easier to read, but takes more space), or of packing them all on one line (more compact, but hard to read).
 -- When the Save dialog appears for the Export AppleScript function, it displays a default filename. The "File Name" popup menu allows the choice of either the last name typed in, or the DeBabelizer script name.

• For a more complete description of the parameters displayed for the functions, contact Equilibrium Technical Support.